package org.bt.nacos;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.web.servlet.ServletComponentScan;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * @author zwj
 */
@SpringBootApplication(scanBasePackages = "com.alibaba.nacos")
@ServletComponentScan
@EnableScheduling
public class NacosApplication {

    public static void main(String[] args) {

        //是否单机模式启动
        String standalone = "true";
        System.setProperty("nacos.standalone", standalone);
        //是否开启鉴权
        String enabled = "false";
        System.setProperty("nacos.core.auth.enabled", enabled);
        SpringApplication.run(NacosApplication.class, args);
    }

}
